package com.example.himalayaproject.find.broadcast.callback;

import com.example.himalayaproject.find.broadcast.bean.Data;
import com.example.himalayaproject.find.broadcast.bean.LocalEntity;
import com.example.himalayaproject.find.broadcast.bean.ProvinceEntity;
import com.example.himalayaproject.find.broadcast.bean.grid.GridEntity;

import retrofit2.Call;
import retrofit2.http.GET;
import retrofit2.http.Query;

/**
 * Created by Administrator on 2016/12/3.
 */

public interface BroadcastHttpService {
    @GET("live-web/v4/homepage")
    Call<Data> getData();
    @GET("live-web/v1/getRadiosListByType")
    Call<LocalEntity> getResult(@Query("pageNum") int pageNum,@Query("pageSize") int pageSize,@Query("provinceCode") String provinceCode ,@Query("radioType") int radioType);
    @GET("live-web/v1/getProvinceList")
    Call<ProvinceEntity> getResult();
    // http://live.ximalaya.com/live-web/v2/radio/category?categoryId=1&pageNum=1&pageSize=20
    @GET("live-web/v2/radio/category?")
    Call<GridEntity> getData(@Query("categoryId") String categoryId,@Query("pageNum") int pageNum,@Query("pageSize") String pageSize);
    // 广播local更多 http://live.ximalaya.com/live-web/v1/radio/local?pageNum=1&pageSize=20
    @GET("live-web/v1/radio/local?")
    Call<GridEntity> getData(@Query("pageNum") int pageNum,@Query("pageSize") String pageSize);

}

